$(function() {
	// 初始化select2插件
	$(".select-control").select2({
		width : "100%",
		theme : "classic"
	});
	
	var config = driver.sourceMapping.config;
	$("#ldapStrategyIncrementUrl").val(config.url);
	$("#ldapStrategyIncrementBase").val(config.base);
	$("#ldapStrategyIncrementUserDn").val(config.userDn);
	// 回显读取范围
	if (driver.policy.increment) {
		var searchScope = driver.policy.increment.searchScope;
		$("#ldapStrategyIncrementSearchScope option[value='"+searchScope+"']").attr("selected","selected");
	}
});